<template>
  <div>
    <v-tableTitle
        :btnConfig="btnConfig"
        title="仓储资源优化"></v-tableTitle>
    <GTable :otherHeight="0" :tableSettingVisible="false" :columnSource="columnSource" :data="tableData">
    </GTable>
  </div>
</template>

<script>
import baseMixin from "@/mixins/BaseMixin";
import tableTitle from "commons/TableTitle";

export default {
  name:"optimize",
  mixins: [baseMixin],
  data() {
    return {
      columnSource:[
        {code:"code1",name:"货主"},
        {code:"code2",name:"货品编号"},
        {code:"code3",name:"货品名称"},
        {code:"code4",name:"移动模式"},
        {code:"code5",name:"源库位"},
        {code:"code6",name:"目标库位"},
        {code:"code7",name:"LPN号"},
        {code:"code8",name:"移动数量"},
        {code:"code9",name:"移动状态"},
      ],
      tableData:[
        {code1:"FDSH-43212",code2:"材料1",code3:"RT-7652545",code4:"标准移动",code5:"T98539459",code6:"T8475341",code7:"L0093458",code8:"28",code9:"移动中"},
        {code1:"FDSH-0657567",code2:"材料2",code3:"RT-0867876",code4:"整库移动",code5:"T985334521",code6:"T84753421",code7:"L0093548",code8:"68",code9:"已完成"},
        {code1:"FDSH-67853",code2:"材料3",code3:"RT-7078678",code4:"LPN移动",code5:"T09054232",code6:"T8475348",code7:"L00123158",code8:"14",code9:"待移动"},
        {code1:"FDSH-8867966",code2:"材料1",code3:"RT-734214",code4:"标准移动",code5:"T653452",code6:"T8475341",code7:"L0123458",code8:"22",code9:"移动中"},
        {code1:"FDSH-21341",code2:"材料2",code3:"RT-97675",code4:"整库移动",code5:"T32354222",code6:"T84753421",code7:"L231233",code8:"43",code9:"已完成"},
        {code1:"FDSH-096786",code2:"材料3",code3:"RT-00709875",code4:"LPN移动",code5:"T88764534",code6:"T8475348",code7:"L0234211",code8:"6",code9:"待移动"},
      ],
    };
  },
  computed: {
    btnConfig() {
      return [
         { label: "生成移动任务", certigier: !this.btnPermNameList.includes('WM06020801'), invalid: "create"},
          { label: this.$t('common.export'), certigier: !this.btnPermNameList.includes('WM06020801'), invalid: "download"},
      ];
    }
  },
  mounted() {
  },
  methods: {
  },
  components: {
    "v-tableTitle": tableTitle,
  }
};
</script>

<style></style>

